Get Color from a Drop Zone

{ getColor }

Retrieve a color for the given drop zone, based on the current data point color value, the current theme and user setting, and the selected math function.

Method
getColor(dataPoint: number[], defaultColor: string): string

Arguments

dataPoint: number []

  • The datapoint to retrieve color for.

defaultColor: string

  • The default color in case no value available. Optionally. Default is White color.

Returns

string

  • An RGBA string with the current data point color value.